{% extends 'base.html' %}

{% block title %}标签云{% endblock %}

{% block content %}

<h1>标签云</h1>
<div class="tag-cloud">
    {% for tag in tags %}
    <a href="{% url 'tag_cloud' %}" class="badge badge-pill badge-{% cycle 'info' 'success' 'primary' 'danger' 'warning' %} tag-cloud-{{ tag.weight }}">{{ tag.name }}</a>
    {% empty %}
    <p class="text-muted">还没有标签！</p>
    {% endfor %}
</div>

{% endblock %}